Avoid root coordinates in begin_drag/move apis
authorMatthias Clasen <mclasen@redhat.com>
Sat, 23 Mar 2019 18:56:21 +0000 (14:56 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 26 Mar 2019 19:57:11 +0000 (15:57 -0400)
commitd45996c7281ebaf95ae88de6ca350b2e3e75b46e
tree1f2203905479d7a5575af9a1221d2397b5efbd83
parent6b6f26ed45fb231e142f2c39aa455bdaafbc5b4d
Avoid root coordinates in begin_drag/move apis

Change the all the begin_drag and begin_move apis in
GdkSurface and GtkWindow to expect surface coordinates.

Update the x11 implementation to translate to root
coordinates where it matters. Wayland is ignoring the
coordinates anyway.
gdk/gdksurface.c
gdk/gdksurface.h
gdk/wayland/gdksurface-wayland.c
gdk/x11/gdksurface-x11.c
gtk/gtkwindow.c
gtk/gtkwindow.h